{include file="public:header" /}
<!--列表-->

        <span style="font-size: 16px;padding-left: 30px;;"><em>{$name}-文章列表</em></span>

<div class="pad_lr_10">
    <div class="col_tab">
        <ul class="J_tabs tab_but cu_li">
        <li {if condition='$status eq ""'}class="current"{/if}><a href="{:url('publish',array('id'=>$nodeid))}">全部</a></li>
        <li {if condition='$status eq 1'}class="current"{/if}><a href="{:url('publish',array('id'=>$nodeid,'status'=>1))}">未采集</a></li>
        <li {if condition='$status eq 2'}class="current"{/if}><a href="{:url('publish',array('id'=>$nodeid,'status'=>2))}">已采集</a></li>
        <li {if condition='$status eq 3'}class="current"{/if}><a href="{:url('publish',array('id'=>$nodeid,'status'=>3))}">已入库</a></li>
    </ul>
    <div class="J_tablelist table_list" data-acturi="">
        <table width="100%" cellspacing="0">
            <thead>
            <tr>
                <th  align="left" width="20"><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th align="left">状态</th>
                <th align="left">标题</th>
                <th align="left">网址</th>
                <th align="left">操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name="lists" id="val"}
                <tr>
                    <td align="left"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                    <td align="left">{if condition="$val['status'] eq 0"}未采集{elseif condition="$val['status'] eq 1" /}已采集{elseif condition="$val['status'] eq 2" /}已导入{/if}</td>
                    <td align="left">{$val.title}</td>
                    <td align="left">{$val.url}</td>
                    <td align="left"><a href="javascript:void(0)" onclick="$('#tab_{$val['id']}').toggle()">查看</a></td>
                </tr>
                <tr id="tab_{$val['id']}" style="display:none">
                    <td align="left" colspan="5"><textarea style="width:98%;height:300px;">{:new_html_special_chars(new_stripslashes($val['data']))}</textarea></td>
                </tr>
            {/volist}
            </tbody>
        </table>

        <div class="btn_wrap_fixed">
            <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">全选/取消</label>
            <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:url('contentdel')}" data-name="id" data-msg="确认要删除所选记录么" value="删除" />
            <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:url('contentdel',array('history'=>1))}" data-name="id" data-msg="同时删除历史" value="同时删除历史" />
            <input type="button" class="btn" data-tdtype="batch_action" data-uri="{:url('import',array('nodeid'=>$nodeid))}" data-name="id" data-msg="导入选中的文章到数据库?" value="导入选中" />
            <input type="button" class="btn" data-tdtype="batch_action" data-all="1" data-uri="{:url('import',array('nodeid'=>$nodeid,'type'=>'all'))}" data-name="id" data-msg="导入全部文章到数据库?" value="全部导入" />
            <div id="pages">{$pages}</div>
        </div>
    </div>
        </div>
</div>
{include file="public:footer" /}

</body>
</html>
